package com.sias.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName vip_user
 */
@TableName(value ="vip_user")
@Data
public class VipUser implements Serializable {
    /**
     * 用户id
     */
    @TableId
    private String id;

    /**
     * 余额
     */
    private Integer mycase;

    /**
     * 充值金额
     */
    private Integer allcase;

    /**
     * vip等级
     */
    private String vip;

    /**
     * vip等级描述
     */
    private String vipDeatils;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        VipUser other = (VipUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMycase() == null ? other.getMycase() == null : this.getMycase().equals(other.getMycase()))
            && (this.getAllcase() == null ? other.getAllcase() == null : this.getAllcase().equals(other.getAllcase()))
            && (this.getVip() == null ? other.getVip() == null : this.getVip().equals(other.getVip()))
            && (this.getVipDeatils() == null ? other.getVipDeatils() == null : this.getVipDeatils().equals(other.getVipDeatils()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMycase() == null) ? 0 : getMycase().hashCode());
        result = prime * result + ((getAllcase() == null) ? 0 : getAllcase().hashCode());
        result = prime * result + ((getVip() == null) ? 0 : getVip().hashCode());
        result = prime * result + ((getVipDeatils() == null) ? 0 : getVipDeatils().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", mycase=").append(mycase);
        sb.append(", allcase=").append(allcase);
        sb.append(", vip=").append(vip);
        sb.append(", vipDeatils=").append(vipDeatils);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}